package com.service;

import com.mapper.StudentMapper;
import com.pojo.Student;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StudentService {

    @Resource
    private StudentMapper studentDao;

    public Student fetchById(int id) {
        return studentDao.selectByPrimaryKey(id);
    }

}
